<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>服务查询</title>
</head>
<body>
<div>
    <h2>服务列表</h2>
    <table th:name="服务列表" border="1">
        <tr>
            <th>序号</th><th>服务名称</th>
        </tr>
        <tr th:each = "service, serviceStat : ${serviceInterfaceMap}">
            <td th:text = "${serviceStat.index + 1}" style="font-weight: bold;"></td>
            <td ><a th:href = "@{/inquiry/(key=${service.key})}" th:text="${service.key}"></a></td>
        </tr>
    </table>
    <h2>提供者和消费者接口列表</h2>
    <table th:name="接口列表" border="1">
        <tr>
            <th>序号</th><th>请求地址</th><th>请求类型</th><th>服务提供者</th><th>服务消费者</th>
            <th>主机</th><th>控制器名称</th><th>方法名称</th><th>请求参数</th><th>返回参数</th>
        </tr>
        <tr th:each = "method, methodStat : ${requestMethodItemList}">
            <td th:text = "${methodStat.index + 1}" style="font-weight: bold;"></td>
            <td th:text = "${method.requestUrl}" style="color: blue;"></td>
            <td th:text = "${method.requestType}"></td>
            <td th:text = "${method.pServiceName}" style="color: red;"></td>
            <td th:text = "${method.cServiceName}" style="color: green;"></td>
            <td th:text = "${method.serverName}"></td>
            <td th:text = "${method.controllerName}"></td>
            <td th:text = "${method.methodName}"></td>
            <td th:text = "${method.methodParamTypes}"></td>
            <td th:text = "${method.returnType}"></td>
        </tr>
    </table>
</div>
</body>
</html>